package com.zpf.feign;

import com.zpf.config.EurekaAuthConfig;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;

/**
 * @InterfaceName: UserFeignCustomSecondClient
 * @Description: TODO
 * @Autor: ZPF
 * @Date: 2021/1/15 9:35
 **/
@FeignClient(name = "xxx", url = "http://localhost:8761/", configuration = EurekaAuthConfig.class, fallback = UserFeignCustomSecondClientFallback.class)
public interface UserFeignCustomSecondClient {

    @RequestLine("GET /eureka/apps/{serviceName}")
    public String findEurekaInfo(@Param("serviceName") String serviceName);

}
